package concurso2.practicas;

import java.util.Scanner;

public class king {

	static Scanner tec = new Scanner(System.in);
	static Integer a, b, c;
	static String[] cadena;

	public static void main(String[] args) {
		while (true) {
			cadena = tec.nextLine().split(" ");
			a = Integer.valueOf(cadena[0]);
			b = Integer.valueOf(cadena[1]);
			c = Integer.valueOf(cadena[2]);

			if (a == b && b == c) {
				if (c == 0) {
					break;
				}
				if (a == b && b == c) {
					if(a < 13 )
					{
						System.out.println( a+1 +" "+ (b+1)+" "+(c+1) );
					}
					else
					{
					System.out.println("*");	
					}
				}
			}

		}
	}
}
